package com.kk.xhr.admin.controller.request;

import com.kk.xhr.common.pojo.RewardTypeEnum;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * 奖惩添加request
 *
 * @author luokexiong
 * @version 1.0 2021/2/17
 * @since 1.0.0
 */
@ApiModel
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class RewardAddRequest {
    @Size(min = 1, max = 20)
    @NotNull
    private List<Long> userIds;
    /** 奖惩类型：0=实习生奖，1=功劳奖 */
    @NotNull
    private RewardTypeEnum type;
    /** 奖金 */
    private Long money;
    /** 原因 */
    @NotBlank
    private String reason;
    /** 奖惩时间 */
    @NotNull
    private Long rewardDate;
}
